import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import 'ant-design-vue/dist/reset.css';
// import * as Icons from '@ant-design/icons-vue';
import { createPinia } from 'pinia';
import router from '@/router';
const pinia = createPinia();

import { registerDirectives } from './directive';
import { registerStore } from './store';
const app = createApp(App);
app.use(pinia);
registerStore();
app.use(router);
registerDirectives(app);
// // 注册图标组件
// for (const i in Icons) {
//   app.component(i, Icons[i as keyof typeof Icons]);
// }
app.mount('#app');
